package com.itheima.dao;

import com.itheima.domain.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * className: BookDao
 * description:
 * date: 2023/2/22 0022-PM 8:47:13
 * <p>
 * project: springboot
 * package: com.itheima.dao
 * email: 1085844536@qq.com
 * version:
 *
 * @author WangGuojian
 */
@Mapper
public interface BookDao {

    /**
     * 根据 id 查询
     *
     * @param id {@link Integer} id
     * @return {@link Book}
     */
    @Select("select * from tbl_book where id = #{id}")
    Book getById(Integer id);
}
